You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clVector Structure > clVector Methods > PhaseSpectrum Method > clVector.PhaseSpectrum Method ([In] TOpenCLMtxVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clVector.PhaseSpectrum Method ([In] TOpenCLMtxVec)

The phase angles (spectrum) of object elements.

Syntax
C#
Visual Basic
public TOpenCLMtxVec PhaseSpectrum([In] TOpenCLMtxVec Vec);

Calculates the phase angles (spectrum) of all Vec object elements. Phase values are returned in radians and are in the range -PI,PI. Size and Complex properties of the calling object are set implicitly to match Vec object. The phase angles are calculated from the following equation: 

 

var a,b: clVector; begin a.CopyFromArray(TSingleArray.Create(1,2,3,-4)); // a = [1 + 2i, 3 - 4i] b.PhaseSpectrum(a); // b = [arctan2(1,2), arctan2(3,-4)]; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!